<table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th width="70">编号</th>
                                        <th>问题</th>
                                        <th>答案</th>
                                        <th>是否可用</th>
                                        <th>排序</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                </thead>
                                <tbody class="x-cate">
                                <foreach name="list" item="val">
                                    <tr cate-id='1' fid='0'>
                                        <td>{$key+1}</td>
                                        <td>{$val['title']}</td>
                                        <td>{$val['ans']}</td>
                                        <td>{$val['inuse'] == 1 ? '启用' : '禁用'}</td>
                                        <td>{$val['ordernum']}</td>
                                        <td>{$val['createdt']}</td>
                                        <td class="td-manage">
                                            <a href="/Admin/Question/addQuestion?id={$val['id']}">
                                                <button class="layui-btn layui-btn layui-btn-xs">编辑</button>
                                            </a>
                                    <if condition="$val['inuse'] eq 1">
                                        <button class="layui-btn layui-btn layui-btn-xs saveQ" data-data='2' data-id="{$val['id']}">禁用</button>
                                        <else />
                                        <button class="layui-btn layui-btn layui-btn-xs saveQ" data-data='1' data-id="{$val['id']}">启用</button>
                                    </if>
                                    </td>

                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="layui-card-body ">
                                <div class="page">
                                    {$page}
                                </div>
                            </div>